package com.zxy.salenet.web.utils;


/**
 * code码定义
 */
 /**
 * CodeMessage。
 */
public enum CodeMessage {
    //枚举中定义的全是常量值
    //通过调用构造进行设置值
    LOGIN_SUCCESS(200,"登陆成功"),
    CANCEL(800,"注销成功"),
    LOGIN_ERROR(1000,"登陆失败"),
    LGOIN_VALID_ERROR(1001,"账号或密码错误"),
    REGISTER_ERROR(1003,"注册错误"),
    UPDATE_STATUS(1005,"修改成功"),
    USER_MANGER(1004,"查询成功");

    private int code;
    private String message;

    private CodeMessage(int code,String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
